using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace examplegui { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void btnCalculate_Click(object sender, EventArgs e) { lblOutput.Text = (Int32.Parse(txtInput1.Text) + Int32.Parse(txtInput2.Text)).ToString(); } } }